package com.day01.source;

import java.util.*;

public class DataSource {

    public void addKey(String key, String value) {
        System.out.println("模拟存入数据库，key: " + key + " value: " + value);
    }

    public String[] keys(String connect) {
        System.out.println("获取到数据库连接：" + connect);
        System.out.println("模拟从数据库返回" );
        return Arrays.asList("spring.active", "charset", "zone").toArray(new String[0]);
    }
}
